//
//  XMHudProgress.h
//  MotoEye
//
//  Created by 徐盟 on 2023/5/9.
//

#import <Foundation/Foundation.h>
#import "MBProgressHUD.h"

NS_ASSUME_NONNULL_BEGIN

@interface XMHudProgress : NSObject
@property(nonatomic, copy) NSString *currTag;

-(instancetype) initWithController:(UIViewController *) controller;
+(instancetype) XMHudWithController:(UIViewController *) controller;

-(XMHudProgress *(^)(CGFloat))timeout;

-(XMHudProgress *(^)())loading;

-(XMHudProgress *(^)(NSString * _Nullable ))loadingWithLable;
-(XMHudProgress *(^)(NSString * _Nullable))tips;
-(XMHudProgress *(^)(NSString * _Nullable))alert;
-(XMHudProgress* (^)(NSString *))tag;
-(void(^)())hide;
-(void(^)(NSString *))hideWithTag;


@end

NS_ASSUME_NONNULL_END
